Optimal. Leaf size=163 \[ \frac {i n \tan ^{-1}\left (\frac {\sqrt {b} x}{\sqrt {a}}\right )^2}{\sqrt {a} \sqrt {b}}+\frac {2 n \tan ^{-1}\left (\frac {\sqrt {b} x}{\sqrt {a}}\right ) \log \left (\frac {2 \sqrt {a}}{\sqrt {a}+i \sqrt {b} x}\right )}{\sqrt {a} \sqrt {b}}+\frac {\tan ^{-1}\left (\frac {\sqrt {b} x}{\sqrt {a}}\right ) \log \left (c \left (a+b x^2\right )^n\right )}{\sqrt {a} \sqrt {b}}+\frac {i n \text {Li}_2\left (1-\frac {2 \sqrt {a}}{\sqrt {a}+i \sqrt {b} x}\right )}{\sqrt {a} \sqrt {b}} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.10, antiderivative size = 163, normalized size of antiderivative = 1.00, number of steps
used = 6, number of rules used = 7, integrand size = 22, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.318, Rules used = {211, 2520, 12,
5040, 4964, 2449, 2352} \begin {gather*} \frac {i n \text {PolyLog}\left (2,1-\frac {2 \sqrt {a}}{\sqrt {a}+i \sqrt {b} x}\right )}{\sqrt {a} \sqrt {b}}+\frac {\text {ArcTan}\left (\frac {\sqrt {b} x}{\sqrt {a}}\right ) \log \left (c \left (a+b x^2\right )^n\right )}{\sqrt {a} \sqrt {b}}+\frac {i n \text {ArcTan}\left (\frac {\sqrt {b} x}{\sqrt {a}}\right )^2}{\sqrt {a} \sqrt {b}}+\frac {2 n \text {ArcTan}\left (\frac {\sqrt {b} x}{\sqrt {a}}\right ) \log \left (\frac {2 \sqrt {a}}{\sqrt {a}+i \sqrt {b} x}\right )}{\sqrt {a} \sqrt {b}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 12
Rule 211
Rule 2352
Rule 2449
Rule 2520
Rule 4964
Rule 5040
Rubi steps
\begin {align*} \int \frac {\log \left (c \left (a+b x^2\right )^n\right )}{a+b x^2} \, dx &=\frac {\tan ^{-1}\left (\frac {\sqrt {b} x}{\sqrt {a}}\right ) \log \left (c \left (a+b x^2\right )^n\right )}{\sqrt {a} \sqrt {b}}-(2 b n) \int \frac {x \tan ^{-1}\left (\frac {\sqrt {b} x}{\sqrt {a}}\right )}{\sqrt {a} \sqrt {b} \left (a+b x^2\right )} \, dx\\ &=\frac {\tan ^{-1}\left (\frac {\sqrt {b} x}{\sqrt {a}}\right ) \log \left (c \left (a+b x^2\right )^n\right )}{\sqrt {a} \sqrt {b}}-\frac {\left (2 \sqrt {b} n\right ) \int \frac {x \tan ^{-1}\left (\frac {\sqrt {b} x}{\sqrt {a}}\right )}{a+b x^2} \, dx}{\sqrt {a}}\\ &=\frac {i n \tan ^{-1}\left (\frac {\sqrt {b} x}{\sqrt {a}}\right )^2}{\sqrt {a} \sqrt {b}}+\frac {\tan ^{-1}\left (\frac {\sqrt {b} x}{\sqrt {a}}\right ) \log \left (c \left (a+b x^2\right )^n\right )}{\sqrt {a} \sqrt {b}}+\frac {(2 n) \int \frac {\tan ^{-1}\left (\frac {\sqrt {b} x}{\sqrt {a}}\right )}{i-\frac {\sqrt {b} x}{\sqrt {a}}} \, dx}{a}\\ &=\frac {i n \tan ^{-1}\left (\frac {\sqrt {b} x}{\sqrt {a}}\right )^2}{\sqrt {a} \sqrt {b}}+\frac {2 n \tan ^{-1}\left (\frac {\sqrt {b} x}{\sqrt {a}}\right ) \log \left (\frac {2 \sqrt {a}}{\sqrt {a}+i \sqrt {b} x}\right )}{\sqrt {a} \sqrt {b}}+\frac {\tan ^{-1}\left (\frac {\sqrt {b} x}{\sqrt {a}}\right ) \log \left (c \left (a+b x^2\right )^n\right )}{\sqrt {a} \sqrt {b}}-\frac {(2 n) \int \frac {\log \left (\frac {2}{1+\frac {i \sqrt {b} x}{\sqrt {a}}}\right )}{1+\frac {b x^2}{a}} \, dx}{a}\\ &=\frac {i n \tan ^{-1}\left (\frac {\sqrt {b} x}{\sqrt {a}}\right )^2}{\sqrt {a} \sqrt {b}}+\frac {2 n \tan ^{-1}\left (\frac {\sqrt {b} x}{\sqrt {a}}\right ) \log \left (\frac {2 \sqrt {a}}{\sqrt {a}+i \sqrt {b} x}\right )}{\sqrt {a} \sqrt {b}}+\frac {\tan ^{-1}\left (\frac {\sqrt {b} x}{\sqrt {a}}\right ) \log \left (c \left (a+b x^2\right )^n\right )}{\sqrt {a} \sqrt {b}}+\frac {(2 i n) \text {Subst}\left (\int \frac {\log (2 x)}{1-2 x} \, dx,x,\frac {1}{1+\frac {i \sqrt {b} x}{\sqrt {a}}}\right )}{\sqrt {a} \sqrt {b}}\\ &=\frac {i n \tan ^{-1}\left (\frac {\sqrt {b} x}{\sqrt {a}}\right )^2}{\sqrt {a} \sqrt {b}}+\frac {2 n \tan ^{-1}\left (\frac {\sqrt {b} x}{\sqrt {a}}\right ) \log \left (\frac {2 \sqrt {a}}{\sqrt {a}+i \sqrt {b} x}\right )}{\sqrt {a} \sqrt {b}}+\frac {\tan ^{-1}\left (\frac {\sqrt {b} x}{\sqrt {a}}\right ) \log \left (c \left (a+b x^2\right )^n\right )}{\sqrt {a} \sqrt {b}}+\frac {i n \text {Li}_2\left (1-\frac {2 \sqrt {a}}{\sqrt {a}+i \sqrt {b} x}\right )}{\sqrt {a} \sqrt {b}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.03, size = 128, normalized size = 0.79 \begin {gather*} \frac {\tan ^{-1}\left (\frac {\sqrt {b} x}{\sqrt {a}}\right ) \left (i n \tan ^{-1}\left (\frac {\sqrt {b} x}{\sqrt {a}}\right )+2 n \log \left (\frac {2 i}{i-\frac {\sqrt {b} x}{\sqrt {a}}}\right )+\log \left (c \left (a+b x^2\right )^n\right )\right )+i n \text {Li}_2\left (\frac {i \sqrt {a}+\sqrt {b} x}{-i \sqrt {a}+\sqrt {b} x}\right )}{\sqrt {a} \sqrt {b}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [F]
time = 0.27, size = 0, normalized size = 0.00 \[\int \frac {\ln \left (c \left (b \,x^{2}+a \right )^{n}\right )}{b \,x^{2}+a}\, dx\]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {\log {\left (c \left (a + b x^{2}\right )^{n} \right )}}{a + b x^{2}}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.01 \begin {gather*} \int \frac {\ln \left (c\,{\left (b\,x^2+a\right )}^n\right )}{b\,x^2+a} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________